The section describes the programming interface of the I2C slave mode Peripheral driver.
More...
| struct i2c_slave_user_config_t |
| i2c_status_t(* i2c_slave_user_config_t::data_source)(uint8_t *source_byte) |
| i2c_status_t(* i2c_slave_user_config_t::data_sink)(uint8_t sink_byte) |
| void(* i2c_slave_user_config_t::on_error)(i2c_status_t error) |
| uint8_t i2c_slave_user_config_t::slaveAddress |
Saves the application callback info, turns on the clock to the module, enables the device, and enables interrupts. Sets the I2C to slave mode. IOMux is expected to be already handled in the init_hardware().
- Parameters
-
| instance | Instance number of the I2C module. |
| appInfo | Pointer of the application information. |
| void i2c_slave_shutdown |
( |
uint32_t |
instance | ) |
|
Clears the control register and turns off the clock to the module.
- Parameters
-
| instance | Instance number of the I2C module. |